package com.corpgovernment.common.constant;

import com.ctrip.corp.obt.generic.exception.ResponseStatus;

public enum CommonResponseCodeEnum implements ResponseStatus {
    NOT_SUPPORTED_CARD("不支持的证件",59500),
    FILL_IN_RIGHT_CARD_NO_FOR_TYPE("请填写符合您的证件类型的的证件号码",59501),
    PLEASE_CHOOSE_GANGAO_CARD("填写的可能是港澳台居民居住证，请切换您的证件类型",59502),
    INVALID_LEGAL_NAME("请填写有效的法定姓名",59503),
    FILL_IN_RIGHT_CARD_NO("请填写有效的证件号码",59504),
    FILL_IN_EXPIRATION_DATE("请选择有效的到期时间",59505),
    INVALID_LEGAL_FIRST_NAME("请填写有效的法定名称",50006),
    INVALID_LEGAL_LAST_NAME("请填写有效的法定姓氏",50007),
    FILL_IN_RIGHT_BIRTHDAY("请选择出生日期",59508),
    QUERY_CLIENTID_ERROR("获取clientid失败",59509),
    ;

    private String message;
    private int code;
 
    CommonResponseCodeEnum(String message, int code) {
        this.message = message;
        this.code = code;
    }
 
    @Override
    public int code() {
        return code;
    }
 
    @Override
    public String message() {
        return message;
    }
}